<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
 
<!-- All Spring messages used in this view are declared below with a variable -->
 
 <div class="panel panel-default loginPanel">
    <div class="panel-heading">
        <h2>Login</h2>
    </div>
    <form class="form-horizontal" id="loginForm" action="${pageContext.request.contextPath}/login" method="post">
        <div class="panel-body container-fluid">
            <div class="row">
                <div class="form-group">
                    <label class="col-md-2 control-label">Username</label>
                    <div class="col-md-4">
                        <input class="form-control"type='text' name='username' />
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="form-group">
                    <label class="col-md-2 control-label">Password</label>
                    <div class="col-md-4">
                        <input class="form-control" type='password' name='password' />
                    </div>
                </div>               
            </div>
            <div class="row">
                <div class="form-group">
                    <div class="col-md-2"></div>
                    <div class="col-md-2"><a href="<c:url value="customer/create"/>">Create account</a></div>
                </div>
            </div>
            <div class="row">
                <div class="col-md-2"></div>
                <input class="btn" id='submit' name="submit" type="submit" value="Login"/>
            </div>
        </div>
    </form>
</div>